/*      */ import java.awt.Color;
/*      */ import java.awt.Container;
/*      */ import java.awt.Dimension;
/*      */ import java.awt.Font;
/*      */ import java.awt.Graphics;
/*      */ import java.awt.Graphics2D;
/*      */ import java.awt.Insets;
/*      */ import java.awt.event.ActionEvent;
/*      */ import java.awt.event.ActionListener;
/*      */ import java.awt.event.ItemEvent;
/*      */ import java.awt.event.ItemListener;
/*      */ import java.awt.event.MouseEvent;
/*      */ import java.awt.event.MouseMotionListener;
import java.awt.geom.Line2D;
/*      */ import java.awt.geom.Line2D.Double;
/*      */ import java.text.DecimalFormat;
/*      */ import java.util.List;
/*      */ import javax.swing.BorderFactory;
/*      */ import javax.swing.Box;
/*      */ import javax.swing.BoxLayout;
/*      */ import javax.swing.JButton;
/*      */ import javax.swing.JCheckBox;
/*      */ import javax.swing.JDialog;
/*      */ import javax.swing.JFrame;
/*      */ import javax.swing.JLabel;
/*      */ import javax.swing.JOptionPane;
/*      */ import javax.swing.JPanel;
/*      */ import javax.swing.JScrollPane;
/*      */ import javax.swing.JTextField;
import javax.swing.border.TitledBorder;
/*      */ 
/*      */ public class BarChart extends JPanel
/*      */   implements MouseMotionListener, BBIInterface, ActionListener, ItemListener
/*      */ {
/*      */   private SymQuotes sq;
/*      */   private String index;
/*   14 */   private float yScale = 1.0F;
/*   15 */   private float xScale = 1.0F;
/*      */   private double stickWidth;
/*      */   private float minVal;
/*      */   private float maxVal;
/*      */   private double openLineY;
/*      */   private double openLineX;
/*      */   private double closeLineY;
/*      */   private double closeLineX;
/*      */   private double lChartVLineX;
/*      */   private double lChartVLineStartY;
/*      */   private double lChartVLineEndY;
/*      */   private int ma_p;
/*      */   private int ma_q;
/*      */   private float[] MAs;
/*      */   private float[] MAb;
/*      */   private float[] MA20;
/*      */   private float[] MA30;
/*      */   private float[] MA50;
/*   27 */   private boolean drawMa20 = true;
/*   28 */   private boolean drawMa30 = true;
/*   29 */   private boolean drawMa50 = true;
/*      */ 
/*   31 */   private String m = "";
/*      */   private int mX;
/*      */   private int mY;
/*      */   private double p1Yp;
/*      */   private double p2Yp;
/*      */   private double p1Yq;
/*      */   private double p2Yq;
/*   35 */   public int noOfDays = 150;
/*      */   private JTextField ma_PTF;
/*      */   private JTextField ma_QTF;
/*      */   private JButton chgParmOk;
/*      */   private JButton chgParmCancel;
/*      */   private JButton defaultParms;
/*      */   private JDialog chgParmDialog;
/*      */   private JCheckBox ma20CB;
/*      */   private JCheckBox ma30CB;
/*      */   private JCheckBox ma50CB;
/*   43 */   private DecimalFormat df = new DecimalFormat("0.00");
/*      */ 
/*   45 */   public String trend = "";
/*      */   public BarChart.EastPanel ep;
/*      */   private double refY;
/*      */   private double refX;
/*  551 */   private Font ssp10 = new Font("SansSerif", 0, 10);
/*  552 */   private Font ssp9 = new Font("SansSerif", 0, 9);
/*  553 */   private Line2D.Double refL1 = new Line2D.Double();
/*  554 */   private Line2D.Double refL2 = new Line2D.Double();
/*  555 */   private Line2D.Double gridY = new Line2D.Double();
/*  556 */   private Line2D.Double yrefL1 = new Line2D.Double();
/*  557 */   private Line2D.Double yrefL2 = new Line2D.Double();
/*  558 */   private Line2D.Double gridX = new Line2D.Double();
/*      */   private double yfactor;
/*      */   private double startPointX;
/*      */   private int dateRef;
/*      */   private int daysRef;
/*  563 */   private Line2D.Double vLine = new Line2D.Double();
/*  564 */   private Line2D.Double openLine = new Line2D.Double();
/*  565 */   private Line2D.Double closeLine = new Line2D.Double();
/*  566 */   private Line2D.Double l1 = new Line2D.Double();
/*  567 */   private Line2D.Double l2 = new Line2D.Double();
/*      */   double x1;
/*      */   double y1;
/*      */   double x2;
/*      */   double y2;
/*      */   double u1;
/*      */   double v1;
/*      */   double u2;
/*      */   double v2;
/*      */   double a1;
/*      */   double b1;
/*      */   double a2;
/*      */   double b2;
/*      */   double xi;
/*      */   double yi;
/*  569 */   private Line2D.Double uA = new Line2D.Double();
/*  570 */   private Line2D.Double lA = new Line2D.Double();
/*  571 */   private Line2D.Double hA = new Line2D.Double();
/*      */ 
/*      */   public BarChart(SymQuotes paramSymQuotes)
/*      */   {
/*   51 */     this.sq = paramSymQuotes;
/*      */ 
/*   53 */     this.MAs = new float[paramSymQuotes.count];
/*   54 */     this.MAb = new float[paramSymQuotes.count];
/*   55 */     this.ma_p = 5;
/*   56 */     this.ma_q = 10;
/*   57 */     MAsFinder();
/*   58 */     MAbFinder();
/*      */ 
/*   60 */     this.MA20 = MAnFinder(20);
/*   61 */     this.MA30 = MAnFinder(30);
/*   62 */     this.MA50 = MAnFinder(50);
/*      */ 
/*   64 */     findMinMax();
/*      */ 
/*   66 */     if (this.noOfDays == 150)
/*   67 */       this.stickWidth = (4.0F * this.xScale);
/*      */     else {
/*   69 */       this.stickWidth = (1.5D * this.xScale);
/*      */     }
/*   71 */     setBackground(Color.black);
/*   72 */     setPreferredSize(new Dimension((int)(750.0F * this.xScale + 100.0F), (int)(200.0F * this.yScale + 25.0F)));
/*      */ 
/*   74 */     addMouseMotionListener(this);
/*      */ 
/*   76 */     if (this.MAs[(paramSymQuotes.count - 1)] >= this.MAb[(paramSymQuotes.count - 1)])
/*   77 */       this.trend = "Bullish";
/*      */     else {
/*   79 */       this.trend = "Bearish";
/*      */     }
/*   81 */     this.ep = new BarChart.EastPanel();
/*      */   }
/*      */ 
/*      */   public int getBBIdata(int paramInt)
/*      */   {
/*   89 */     if (this.MAs[paramInt] >= this.MAb[paramInt]) {
/*   90 */       return 1;
/*      */     }
/*   92 */     return 0;
/*      */   }
/*      */ 
/*      */   public void changeNoOfDays(int paramInt)
/*      */   {
/*   99 */     this.noOfDays = paramInt;
/*      */ 
/*  101 */     if (paramInt == 150)
/*  102 */       this.stickWidth = (4.0F * this.xScale);
/*      */     else
/*  104 */       this.stickWidth = (1.5D * this.xScale);
/*  105 */     findMinMax();
/*      */   }
/*      */ 
/*      */   public void redrawChart(SymQuotes paramSymQuotes)
/*      */   {
/*  112 */     this.sq = paramSymQuotes;
/*      */ 
/*  114 */     this.MAs = new float[paramSymQuotes.count];
/*  115 */     this.MAb = new float[paramSymQuotes.count];
/*      */ 
/*  117 */     MAsFinder();
/*  118 */     MAbFinder();
/*      */ 
/*  120 */     this.MA20 = MAnFinder(20);
/*  121 */     this.MA30 = MAnFinder(30);
/*  122 */     this.MA50 = MAnFinder(50);
/*      */ 
/*  124 */     findMinMax();
/*      */ 
/*  126 */     if (this.noOfDays == 150)
/*  127 */       this.stickWidth = (4.0F * this.xScale);
/*      */     else {
/*  129 */       this.stickWidth = (1.5D * this.xScale);
/*      */     }
/*  131 */     if (this.MAs[(paramSymQuotes.count - 1)] >= this.MAb[(paramSymQuotes.count - 1)])
/*  132 */       this.trend = "Bullish";
/*      */     else {
/*  134 */       this.trend = "Bearish";
/*      */     }
/*  136 */     repaint();
/*  137 */     this.ep.updateValues();
/*      */   }
/*      */ 
/*      */   public void redrawChart()
/*      */   {
/*  144 */     MAsFinder();
/*  145 */     MAbFinder();
/*      */ 
/*  147 */     this.MA20 = MAnFinder(20);
/*  148 */     this.MA30 = MAnFinder(30);
/*  149 */     this.MA50 = MAnFinder(50);
/*      */ 
/*  151 */     findMinMax();
/*      */ 
/*  153 */     if (this.MAs[(this.sq.count - 1)] >= this.MAb[(this.sq.count - 1)])
/*  154 */       this.trend = "Bullish";
/*      */     else {
/*  156 */       this.trend = "Bearish";
/*      */     }
/*  158 */     repaint();
/*  159 */     this.ep.updateValues();
/*      */   }
/*      */ 
/*      */   public void mouseMoved(MouseEvent paramMouseEvent)
/*      */   {
/*  167 */     int j = 1;
/*  168 */     if ((paramMouseEvent.getX() >= 50) && (paramMouseEvent.getX() <= 750.0F * this.xScale + 50.0F) && (paramMouseEvent.getY() >= 10) && (paramMouseEvent.getY() <= this.yScale * 200.0F + 10.0F))
/*      */     {
/*  170 */       int i = (int)((750.0F * this.xScale - (paramMouseEvent.getX() - 50) - this.stickWidth / 2.0D) / (this.stickWidth + 1.0F * this.xScale));
/*      */ 
/*  172 */       if (this.sq.count - 1 >= i)
/*      */       {
/*  174 */         j = this.sq.count - 1 - i;
/*  175 */         this.m = ("( " + (String)this.sq.date.get(j) + ", MA[" + this.ma_p + "]:" + this.df.format(this.MAs[j]) + ", MA[" + this.ma_q + "]:" + this.df.format(this.MAb[j]) + " )");
/*  176 */         this.mX = paramMouseEvent.getX();
/*  177 */         this.mY = paramMouseEvent.getY();
/*  178 */         repaint();
/*  179 */         return;
/*      */       }
/*      */ 
/*  183 */       this.m = "";
/*      */ 
/*  185 */       repaint();
/*  186 */       return;
/*      */     }
/*      */ 
/*  190 */     this.m = "";
/*  191 */     repaint();
/*      */   }
/*      */ 
/*      */   public void mouseDragged(MouseEvent paramMouseEvent)
/*      */   {
/*      */   }
/*      */ 
/*      */   private void drawValues(Graphics2D paramGraphics2D)
/*      */   {
/*  204 */     paramGraphics2D.setPaint(Color.cyan);
/*      */ 
/*  206 */     if (this.mX + this.m.length() * 5 > 750.0F * this.xScale + 50.0F) {
/*  207 */       this.mX -= this.m.length() * 5;
/*      */     }
/*  209 */     paramGraphics2D.drawString(this.m, this.mX, this.mY);
/*      */   }
/*      */ 
/*      */   private void MAsFinder()
/*      */   {
/*  217 */     for (int i = this.ma_p; i < this.sq.count; i++)
/*      */     {
/*  219 */       float f = 0.0F;
/*  220 */       for (int j = i; j >= i - (this.ma_p - 1); j--)
/*      */       {
/*  222 */         f += ((Float)this.sq.close.get(j)).floatValue();
/*      */       }
/*      */ 
/*  225 */       this.MAs[i] = (f / this.ma_p);
/*      */     }
/*      */   }
/*      */ 
/*      */   private void MAbFinder()
/*      */   {
/*  234 */     for (int i = this.ma_q; i < this.sq.count; i++)
/*      */     {
/*  236 */       float f = 0.0F;
/*  237 */       for (int j = i; j >= i - (this.ma_q - 1); j--)
/*      */       {
/*  239 */         f += ((Float)this.sq.close.get(j)).floatValue();
/*      */       }
/*      */ 
/*  242 */       this.MAb[i] = (f / this.ma_q);
/*      */     }
/*      */   }
/*      */ 
/*      */   private float[] MAnFinder(int paramInt)
/*      */   {
/*  251 */     float[] arrayOfFloat = new float[this.sq.count];
/*      */ 
/*  253 */     for (int i = paramInt; i < this.sq.count; i++)
/*      */     {
/*  255 */       float f = 0.0F;
/*  256 */       for (int j = i; j >= i - (paramInt - 1); j--)
/*      */       {
/*  258 */         f += ((Float)this.sq.close.get(j)).floatValue();
/*      */       }
/*      */ 
/*  261 */       arrayOfFloat[i] = (f / paramInt);
/*      */     }
/*      */ 
/*  265 */     return arrayOfFloat;
/*      */   }
/*      */ 
/*      */   public void updateParms(int paramInt1, int paramInt2)
/*      */   {
/*  272 */     this.ma_p = paramInt1;
/*  273 */     this.ma_q = paramInt2;
/*      */ 
/*  275 */     MAsFinder();
/*  276 */     MAbFinder();
/*  277 */     findMinMax();
/*  278 */     this.ep.updateValues();
/*      */   }
/*      */ 
/*      */   public Box getMABox(boolean paramBoolean1, boolean paramBoolean2)
/*      */   {
/*  285 */     Box localBox = Box.createHorizontalBox();
/*  286 */     TitledBorder localTitledBorder = BorderFactory.createTitledBorder("Moving Averages");
/*      */ 
/*  288 */     this.ma_PTF = new JTextField("" + this.ma_p, 2);
/*  289 */     this.ma_QTF = new JTextField("" + this.ma_q, 2);
/*  290 */     this.ma_PTF.setFont(this.ssp10);
/*  291 */     this.ma_QTF.setFont(this.ssp10);
/*  292 */     this.ma_PTF.setMaximumSize(new Dimension(25, 20));
/*  293 */     this.ma_QTF.setMaximumSize(new Dimension(25, 20));
/*      */ 
/*  295 */     JLabel localJLabel1 = new JLabel("MA [");
/*  296 */     JLabel localJLabel2 = new JLabel("] , MA [");
/*  297 */     JLabel localJLabel3 = new JLabel("]  ");
/*  298 */     localJLabel1.setFont(this.ssp10);
/*  299 */     localJLabel2.setFont(this.ssp10);
/*  300 */     localJLabel3.setFont(this.ssp10);
/*      */ 
/*  302 */     this.ma20CB = new JCheckBox("MA[20]", this.drawMa20);
/*  303 */     this.ma30CB = new JCheckBox("MA[30]", this.drawMa30);
/*  304 */     this.ma50CB = new JCheckBox("MA[50]", this.drawMa50);
/*  305 */     this.ma20CB.setFont(this.ssp10);
/*  306 */     this.ma30CB.setFont(this.ssp10);
/*  307 */     this.ma50CB.setFont(this.ssp10);
/*  308 */     this.ma20CB.addItemListener(this);
/*  309 */     this.ma30CB.addItemListener(this);
/*  310 */     this.ma50CB.addItemListener(this);
/*      */ 
/*  312 */     localBox.add(localJLabel1);
/*  313 */     localBox.add(this.ma_PTF);
/*  314 */     localBox.add(localJLabel2);
/*  315 */     localBox.add(this.ma_QTF);
/*  316 */     localBox.add(localJLabel3);
/*      */ 
/*  318 */     if (paramBoolean2) {
/*  319 */       localBox.add(this.ma20CB);
/*  320 */       localBox.add(this.ma30CB);
/*  321 */       localBox.add(this.ma50CB);
/*      */     }
/*      */ 
/*  324 */     localBox.add(Box.createHorizontalGlue());
/*      */ 
/*  326 */     if (paramBoolean1) {
/*  327 */       localBox.setBorder(localTitledBorder);
/*      */     }
/*  329 */     return localBox;
/*      */   }
/*      */ 
/*      */   public void showChgParmDialog()
/*      */   {
/*  336 */     JFrame localJFrame = new JFrame();
/*  337 */     this.chgParmDialog = new JDialog(localJFrame, "Change MA Parameters", true);
/*  338 */     Box localBox1 = Box.createVerticalBox();
/*  339 */     Box localBox2 = Box.createHorizontalBox();
/*      */ 
/*  341 */     this.chgParmOk = new JButton("OK");
/*  342 */     this.chgParmOk.setFont(this.ssp10);
/*  343 */     this.chgParmOk.setMargin(new Insets(1, 2, 1, 2));
/*  344 */     this.chgParmOk.addActionListener(this);
/*      */ 
/*  346 */     this.chgParmCancel = new JButton("Cancel");
/*  347 */     this.chgParmCancel.setFont(this.ssp10);
/*  348 */     this.chgParmCancel.setMargin(new Insets(1, 2, 1, 2));
/*  349 */     this.chgParmCancel.addActionListener(this);
/*      */ 
/*  351 */     this.defaultParms = new JButton("Default");
/*  352 */     this.defaultParms.setFont(this.ssp10);
/*  353 */     this.defaultParms.setMargin(new Insets(1, 2, 1, 2));
/*  354 */     this.defaultParms.setToolTipText("Reset to default parameters");
/*  355 */     this.defaultParms.addActionListener(this);
/*      */ 
/*  357 */     localBox2.add(Box.createHorizontalGlue());
/*  358 */     localBox2.add(this.chgParmOk);
/*  359 */     localBox2.add(Box.createHorizontalStrut(5));
/*  360 */     localBox2.add(this.chgParmCancel);
/*  361 */     localBox2.add(Box.createHorizontalStrut(5));
/*  362 */     localBox2.add(this.defaultParms);
/*  363 */     localBox2.add(Box.createHorizontalGlue());
/*      */ 
/*  365 */     localBox1.add(getMABox(true, true));
/*  366 */     localBox1.add(localBox2);
/*      */ 
/*  368 */     this.chgParmDialog.getContentPane().add(localBox1);
/*  369 */     this.chgParmDialog.setSize(300, 110);
/*  370 */     this.chgParmDialog.setLocationRelativeTo(this.ep);
/*  371 */     this.chgParmDialog.setVisible(true);
/*      */   }
/*      */ 
/*      */   public boolean validateParm()
/*      */   {
/*      */     int i;
/*      */     int j;
/*      */     try
/*      */     {
/*  382 */       i = Integer.parseInt(this.ma_PTF.getText().trim());
/*  383 */       j = Integer.parseInt(this.ma_QTF.getText().trim());
/*      */     }
/*      */     catch (NumberFormatException localNumberFormatException)
/*      */     {
/*  389 */       JOptionPane.showMessageDialog(null, "Error in MA parameter.Enter only numbers greater than 2.", null, 0);
/*      */ 
/*  393 */       this.ma_PTF.setText("" + this.ma_p);
/*  394 */       this.ma_QTF.setText("" + this.ma_q);
/*      */ 
/*  396 */       return false;
/*      */     }
/*      */ 
/*  400 */     if ((i > 200) || (j > 200) || (i < 2) || (j < 2))
/*      */     {
/*  402 */       JOptionPane.showMessageDialog(null, "Error in MA parameter.Enter values between 2 and 200.", null, 0);
/*      */ 
/*  406 */       this.ma_PTF.setText("" + this.ma_p);
/*  407 */       this.ma_QTF.setText("" + this.ma_q);
/*      */ 
/*  409 */       return false;
/*      */     }
/*      */ 
/*  412 */     if (i >= j)
/*      */     {
/*  414 */       JOptionPane.showMessageDialog(null, "Error in MA parameter.MA first parameter must be less than second parameter.", null, 0);
/*      */ 
/*  418 */       this.ma_PTF.setText("" + this.ma_p);
/*  419 */       this.ma_QTF.setText("" + this.ma_q);
/*      */ 
/*  421 */       return false;
/*      */     }
/*      */ 
/*  424 */     this.ma_p = i;
/*  425 */     this.ma_q = j;
/*      */ 
/*  427 */     return true;
/*      */   }
/*      */ 
/*      */   public void actionPerformed(ActionEvent paramActionEvent)
/*      */   {
/*  434 */     if (paramActionEvent.getSource() == this.chgParmOk)
/*      */     {
/*  436 */       if (!validateParm()) {
/*  437 */         return;
/*      */       }
/*  439 */       redrawChart();
/*  440 */       this.chgParmDialog.dispose();
/*      */     }
/*      */ 
/*  444 */     if (paramActionEvent.getSource() == this.chgParmCancel)
/*      */     {
/*  446 */       this.chgParmDialog.dispose();
/*      */     }
/*      */ 
/*  450 */     if (paramActionEvent.getSource() == this.defaultParms)
/*      */     {
/*  452 */       setDefaultParms();
/*      */     }
/*      */   }
/*      */ 
/*      */   public void setDefaultParms()
/*      */   {
/*  461 */     this.ma_PTF.setText("5");
/*  462 */     this.ma_QTF.setText("10");
/*      */   }
/*      */ 
/*      */   public void itemStateChanged(ItemEvent paramItemEvent)
/*      */   {
/*  469 */     if (paramItemEvent.getSource() == this.ma20CB)
/*      */     {
/*  471 */       this.drawMa20 = this.ma20CB.isSelected();
/*      */     }
/*      */ 
/*  475 */     if (paramItemEvent.getSource() == this.ma30CB)
/*      */     {
/*  477 */       this.drawMa30 = this.ma30CB.isSelected();
/*      */     }
/*      */ 
/*  481 */     if (paramItemEvent.getSource() == this.ma50CB)
/*      */     {
/*  483 */       this.drawMa50 = this.ma50CB.isSelected();
/*      */     }
/*      */   }
/*      */ 
/*      */   public void vZoom(boolean paramBoolean)
/*      */   {
/*  492 */     if (paramBoolean)
/*  493 */       this.yScale += 0.2F;
/*  494 */     else if (this.yScale >= 1.2D) {
/*  495 */       this.yScale -= 0.2F;
/*      */     }
/*  497 */     setPreferredSize(new Dimension((int)(750.0F * this.xScale + 100.0F), (int)(200.0F * this.yScale + 25.0F)));
/*      */   }
/*      */ 
/*      */   public void hZoom(boolean paramBoolean)
/*      */   {
/*  504 */     if (paramBoolean)
/*  505 */       this.xScale += 0.2F;
/*  506 */     else if (this.xScale >= 1.2D) {
/*  507 */       this.xScale -= 0.2F;
/*      */     }
/*  509 */     if (this.noOfDays == 150)
/*  510 */       this.stickWidth = (4.0F * this.xScale);
/*      */     else
/*  512 */       this.stickWidth = (1.5D * this.xScale);
/*  513 */     setPreferredSize(new Dimension((int)(750.0F * this.xScale + 100.0F), (int)(200.0F * this.yScale + 25.0F)));
/*      */   }
/*      */ 
/*      */   public void resetZoom()
/*      */   {
/*  520 */     this.yScale = 1.0F;
/*  521 */     this.xScale = 1.0F;
/*  522 */     if (this.noOfDays == 150)
/*  523 */       this.stickWidth = (4.0F * this.xScale);
/*      */     else
/*  525 */       this.stickWidth = (1.5D * this.xScale);
/*  526 */     setPreferredSize(new Dimension((int)(750.0F * this.xScale + 100.0F), (int)(200.0F * this.yScale + 25.0F)));
/*      */   }
/*      */ 
/*      */   protected void clear(Graphics paramGraphics)
/*      */   {
/*  534 */     super.paintComponent(paramGraphics);
/*      */   }
/*      */ 
/*      */   protected void paintComponent(Graphics paramGraphics)
/*      */   {
/*  541 */     clear(paramGraphics);
/*  542 */     Graphics2D localGraphics2D = (Graphics2D)paramGraphics;
/*  543 */     drawChart(localGraphics2D);
/*  544 */     drawValues(localGraphics2D);
/*      */   }
/*      */ 
/*      */   private void drawChart(Graphics2D paramGraphics2D)
/*      */   {
/*  576 */     this.refY = 10.0D;
/*  577 */     this.refX = 50.0D;
/*  578 */     setFont(this.ssp10);
/*  579 */     String str = "Moving Averages";
/*  580 */     paramGraphics2D.setPaint(new Color(100, 240, 250));
/*  581 */     paramGraphics2D.drawString(str, 50, 10);
/*      */ 
/*  583 */     str = "MA[" + this.ma_p + "]";
/*  584 */     paramGraphics2D.setPaint(new Color(220, 170, 40));
/*  585 */     paramGraphics2D.drawString(str, 140, 10);
/*  586 */     str = "MA[" + this.ma_q + "]";
/*  587 */     paramGraphics2D.setPaint(new Color(190, 100, 200));
/*  588 */     paramGraphics2D.drawString(str, 180, 10);
/*  589 */     str = "MA[20]";
/*  590 */     paramGraphics2D.setPaint(new Color(160, 160, 10));
/*  591 */     if (this.drawMa20) {
/*  592 */       paramGraphics2D.drawString(str, 220, 10);
/*      */     }
/*  594 */     str = "MA[30]";
/*  595 */     paramGraphics2D.setPaint(new Color(80, 150, 125));
/*  596 */     if (this.drawMa30) {
/*  597 */       paramGraphics2D.drawString(str, 260, 10);
/*      */     }
/*  599 */     str = "MA[50]";
/*  600 */     paramGraphics2D.setPaint(new Color(10, 100, 210));
/*  601 */     if (this.drawMa50) {
/*  602 */       paramGraphics2D.drawString(str, 300, 10);
/*      */     }
/*      */ 
/*  605 */     this.refL1.setLine(50.0D, 10.0D, 50.0D, this.yScale * 200.0F + 10.0F);
/*  606 */     this.refL2.setLine(750.0F * this.xScale + 50.0F, 10.0D, 750.0F * this.xScale + 50.0F, this.yScale * 200.0F + 10.0F);
/*  607 */     paramGraphics2D.setPaint(Color.white);
/*  608 */     paramGraphics2D.draw(this.refL1);
/*  609 */     paramGraphics2D.draw(this.refL2);
/*      */ 
/*  611 */     for (int i = 0; i < 14; i++)
/*      */     {
/*  613 */       this.refX += 50.0F * this.xScale;
/*  614 */       this.gridY.setLine(this.refX, 10.0D, this.refX, this.yScale * 200.0F + 10.0F);
/*  615 */       paramGraphics2D.setPaint(Color.darkGray);
/*  616 */       paramGraphics2D.draw(this.gridY);
/*      */     }
int i;
/*      */ 
/*  620 */     for (i = 0; i < 11; i++)
/*      */     {
/*  622 */       this.yrefL1.setLine(50.0D, this.refY, 40.0D, this.refY);
/*  623 */       str = this.df.format(this.maxVal - (this.maxVal - this.minVal) / 10.0F * i);
/*  624 */       paramGraphics2D.setPaint(Color.lightGray);
/*  625 */       paramGraphics2D.drawString(str, 5, (int)this.refY);
/*  626 */       this.yrefL2.setLine(750.0F * this.xScale + 50.0F, this.refY, 750.0F * this.xScale + 60.0F, this.refY);
/*      */ 
/*  628 */       paramGraphics2D.drawString(str, (int)(750.0F * this.xScale + 51.0F), (int)this.refY);
/*  629 */       this.gridX.setLine(50.0D, this.refY, 750.0F * this.xScale + 50.0F, this.refY);
/*  630 */       paramGraphics2D.setPaint(Color.white);
/*  631 */       paramGraphics2D.draw(this.yrefL1);
/*  632 */       paramGraphics2D.draw(this.yrefL2);
/*  633 */       paramGraphics2D.setPaint(Color.darkGray);
/*  634 */       paramGraphics2D.draw(this.gridX);
/*  635 */       this.refY += 20.0F * this.yScale;
/*      */     }
/*      */ 
/*  639 */     this.yfactor = (this.yScale * 200.0F / (this.maxVal - this.minVal));
/*  640 */     this.startPointX = (750.0F * this.xScale + 50.0F - (this.stickWidth + 1.0F * this.xScale));
/*  641 */     this.dateRef = (this.sq.count - 1);
/*  642 */     this.daysRef = 1;
/*      */ 
/*  644 */     for (i = this.sq.count - 1; i >= 0; i--)
/*      */     {
/*  646 */       if (this.daysRef == this.noOfDays) {
/*      */         break;
/*      */       }
/*  649 */       this.lChartVLineEndY = (this.yScale * 200.0F + 10.0F - (((Float)this.sq.low.get(i)).floatValue() - this.minVal) * this.yfactor);
/*  650 */       this.lChartVLineStartY = (this.yScale * 200.0F + 10.0F - (((Float)this.sq.high.get(i)).floatValue() - this.minVal) * this.yfactor);
/*  651 */       this.openLineY = (this.yScale * 200.0F + 10.0F - (((Float)this.sq.open.get(i)).floatValue() - this.minVal) * this.yfactor);
/*  652 */       this.closeLineY = (this.yScale * 200.0F + 10.0F - (((Float)this.sq.close.get(i)).floatValue() - this.minVal) * this.yfactor);
/*  653 */       this.openLineX = (this.startPointX - (int)this.stickWidth / 2);
/*  654 */       this.closeLineX = (this.openLineX + this.stickWidth);
/*      */ 
/*  656 */       this.vLine.setLine(this.startPointX, this.lChartVLineStartY, this.startPointX, this.lChartVLineEndY);
/*  657 */       this.openLine.setLine(this.openLineX, this.openLineY, this.startPointX, this.openLineY);
/*  658 */       this.closeLine.setLine(this.startPointX, this.closeLineY, this.closeLineX, this.closeLineY);
/*      */ 
/*  661 */       if (i == 0)
/*  662 */         paramGraphics2D.setPaint(Color.green);
/*  663 */       else if (((Float)this.sq.close.get(i)).floatValue() < ((Float)this.sq.close.get(i - 1)).floatValue())
/*  664 */         paramGraphics2D.setPaint(Color.red);
/*      */       else {
/*  666 */         paramGraphics2D.setPaint(Color.green);
/*      */       }
/*  668 */       paramGraphics2D.draw(this.vLine);
/*  669 */       paramGraphics2D.draw(this.openLine);
/*  670 */       paramGraphics2D.draw(this.closeLine);
/*      */ 
/*  672 */       if (this.dateRef == i)
/*      */       {
/*  674 */         paramGraphics2D.setFont(this.ssp9);
/*  675 */         str = ((String)this.sq.date.get(i)).substring(0, 6);
/*  676 */         paramGraphics2D.drawString(str, (int)this.openLineX, (int)(this.yScale * 200.0F + 20.0F));
/*  677 */         if (this.noOfDays == 150)
/*  678 */           this.dateRef -= 10;
/*      */         else
/*  680 */           this.dateRef -= 20;
/*  681 */         paramGraphics2D.setFont(this.ssp10);
/*      */       }
/*      */ 
/*  685 */       if (i > this.ma_p)
/*      */       {
/*  687 */         this.p1Yp = (this.yScale * 200.0F + 10.0F - (this.MAs[i] - this.minVal) * this.yfactor);
/*  688 */         this.p2Yp = (this.yScale * 200.0F + 10.0F - (this.MAs[(i - 1)] - this.minVal) * this.yfactor);
/*      */ 
/*  690 */         this.l1.setLine(this.startPointX, this.p1Yp, this.startPointX - this.stickWidth - 1.0F * this.xScale, this.p2Yp);
/*  691 */         paramGraphics2D.setPaint(new Color(220, 170, 40));
/*  692 */         paramGraphics2D.draw(this.l1);
/*      */       }
/*      */ 
/*  696 */       if (i > this.ma_q)
/*      */       {
/*  698 */         this.p1Yq = (this.yScale * 200.0F + 10.0F - (this.MAb[i] - this.minVal) * this.yfactor);
/*  699 */         this.p2Yq = (this.yScale * 200.0F + 10.0F - (this.MAb[(i - 1)] - this.minVal) * this.yfactor);
/*      */ 
/*  701 */         this.l2.setLine(this.startPointX, this.p1Yq, this.startPointX - this.stickWidth - 1.0F * this.xScale, this.p2Yq);
/*  702 */         paramGraphics2D.setPaint(new Color(190, 100, 200));
/*  703 */         paramGraphics2D.draw(this.l2);
/*      */       }
/*      */ 
/*  707 */       if ((i > this.ma_q) && (this.MAs[i] - this.MAb[i] >= 0.0F) && (this.MAs[(i - 1)] - this.MAb[(i - 1)] < 0.0F))
/*      */       {
/*  709 */         this.x1 = this.startPointX;
/*  710 */         this.x2 = (this.startPointX - this.stickWidth - 1.0F * this.xScale);
/*  711 */         this.y1 = this.p1Yp;
/*  712 */         this.y2 = this.p2Yp;
/*  713 */         this.u1 = this.x1;
/*  714 */         this.u2 = this.x2;
/*  715 */         this.v1 = this.p1Yq;
/*  716 */         this.v2 = this.p2Yq;
/*      */ 
/*  718 */         this.b1 = ((this.y1 - this.y2) / (this.x1 - this.x2));
/*  719 */         this.a1 = (this.y1 - this.b1 * this.x1);
/*      */ 
/*  721 */         this.b2 = ((this.v1 - this.v2) / (this.u1 - this.u2));
/*  722 */         this.a2 = (this.v1 - this.b2 * this.u1);
/*      */ 
/*  724 */         this.xi = (-1.0D * (this.a1 - this.a2) / (this.b1 - this.b2));
/*  725 */         this.yi = (this.a1 + this.b1 * this.xi + 30.0F * this.yScale);
/*      */ 
/*  727 */         if (this.yi > this.yScale * 200.0F + 5.0F) {
/*  728 */           this.yi = (this.yScale * 200.0F + 5.0F - 5.0F);
/*      */         }
/*      */ 
/*  731 */         paramGraphics2D.setPaint(Color.green);
/*  732 */         this.uA.setLine(this.xi, this.yi - 5.0D, this.xi, this.yi + 5.0D);
/*  733 */         this.lA.setLine(this.xi, this.yi - 5.0D, this.xi - 3.0D, this.yi);
/*  734 */         this.hA.setLine(this.xi, this.yi - 5.0D, this.xi + 3.0D, this.yi);
/*  735 */         paramGraphics2D.draw(this.uA);
/*  736 */         paramGraphics2D.draw(this.lA);
/*  737 */         paramGraphics2D.draw(this.hA);
/*      */       }
/*      */ 
/*  741 */       if ((i > this.ma_q) && (this.MAs[i] - this.MAb[i] < 0.0F) && (this.MAs[(i - 1)] - this.MAb[(i - 1)] >= 0.0F))
/*      */       {
/*  743 */         this.x1 = this.startPointX;
/*  744 */         this.x2 = (this.startPointX - this.stickWidth - 1.0F * this.xScale);
/*  745 */         this.y1 = this.p1Yp;
/*  746 */         this.y2 = this.p2Yp;
/*  747 */         this.u1 = this.x1;
/*  748 */         this.u2 = this.x2;
/*  749 */         this.v1 = this.p1Yq;
/*  750 */         this.v2 = this.p2Yq;
/*      */ 
/*  752 */         this.b1 = ((this.y1 - this.y2) / (this.x1 - this.x2));
/*  753 */         this.a1 = (this.y1 - this.b1 * this.x1);
/*      */ 
/*  755 */         this.b2 = ((this.v1 - this.v2) / (this.u1 - this.u2));
/*  756 */         this.a2 = (this.v1 - this.b2 * this.u1);
/*      */ 
/*  758 */         this.xi = (-1.0D * (this.a1 - this.a2) / (this.b1 - this.b2));
/*  759 */         this.yi = (this.a1 + this.b1 * this.xi - 30.0F * this.yScale);
/*      */ 
/*  761 */         if (this.yi < 15.0D) {
/*  762 */           this.yi = 20.0D;
/*      */         }
/*  764 */         paramGraphics2D.setPaint(Color.red);
/*  765 */         this.uA.setLine(this.xi, this.yi - 5.0D, this.xi, this.yi + 5.0D);
/*  766 */         this.lA.setLine(this.xi, this.yi + 5.0D, this.xi - 3.0D, this.yi);
/*  767 */         this.hA.setLine(this.xi, this.yi + 5.0D, this.xi + 3.0D, this.yi);
/*  768 */         paramGraphics2D.draw(this.uA);
/*  769 */         paramGraphics2D.draw(this.lA);
/*  770 */         paramGraphics2D.draw(this.hA);
/*      */       }
/*      */ 
/*  774 */       if ((this.drawMa20) && (i > 20))
/*      */       {
/*  776 */         this.p1Yq = (this.yScale * 200.0F + 10.0F - (this.MA20[i] - this.minVal) * this.yfactor);
/*  777 */         this.p2Yq = (this.yScale * 200.0F + 10.0F - (this.MA20[(i - 1)] - this.minVal) * this.yfactor);
/*      */ 
/*  779 */         this.l2.setLine(this.startPointX, this.p1Yq, this.startPointX - this.stickWidth - 1.0F * this.xScale, this.p2Yq);
/*  780 */         paramGraphics2D.setPaint(new Color(160, 160, 10));
/*  781 */         paramGraphics2D.draw(this.l2);
/*      */       }
/*      */ 
/*  785 */       if ((this.drawMa30) && (i > 30))
/*      */       {
/*  787 */         this.p1Yq = (this.yScale * 200.0F + 10.0F - (this.MA30[i] - this.minVal) * this.yfactor);
/*  788 */         this.p2Yq = (this.yScale * 200.0F + 10.0F - (this.MA30[(i - 1)] - this.minVal) * this.yfactor);
/*      */ 
/*  790 */         this.l2.setLine(this.startPointX, this.p1Yq, this.startPointX - this.stickWidth - 1.0F * this.xScale, this.p2Yq);
/*  791 */         paramGraphics2D.setPaint(new Color(80, 150, 125));
/*  792 */         paramGraphics2D.draw(this.l2);
/*      */       }
/*      */ 
/*  796 */       if ((this.drawMa50) && (i > 50))
/*      */       {
/*  798 */         this.p1Yq = (this.yScale * 200.0F + 10.0F - (this.MA50[i] - this.minVal) * this.yfactor);
/*  799 */         this.p2Yq = (this.yScale * 200.0F + 10.0F - (this.MA50[(i - 1)] - this.minVal) * this.yfactor);
/*      */ 
/*  801 */         this.l2.setLine(this.startPointX, this.p1Yq, this.startPointX - this.stickWidth - 1.0F * this.xScale, this.p2Yq);
/*  802 */         paramGraphics2D.setPaint(new Color(0, 90, 200));
/*  803 */         paramGraphics2D.draw(this.l2);
/*      */       }
/*      */ 
/*  808 */       this.startPointX = (this.startPointX - this.stickWidth - 1.0F * this.xScale);
/*  809 */       this.daysRef += 1;
/*      */     }
/*      */   }
/*      */ 
/*      */   private void findMinMax()
/*      */   {
/*  820 */     int i = 1;
/*  821 */     this.minVal = ((Float)this.sq.low.get(this.sq.count - 1)).floatValue();
/*  822 */     this.maxVal = ((Float)this.sq.high.get(this.sq.count - 1)).floatValue();
/*      */ 
/*  824 */     for (int j = this.sq.count - 1; j >= 0; j--)
/*      */     {
/*  826 */       if (i > this.noOfDays) {
/*      */         break;
/*      */       }
/*  829 */       if (this.minVal > ((Float)this.sq.low.get(j)).floatValue()) {
/*  830 */         this.minVal = ((Float)this.sq.low.get(j)).floatValue();
/*      */       }
/*  832 */       if (this.maxVal < ((Float)this.sq.high.get(j)).floatValue()) {
/*  833 */         this.maxVal = ((Float)this.sq.high.get(j)).floatValue();
/*      */       }
/*  835 */       i += 1;
/*      */     }
/*      */ 
/*  839 */     i = 1;
int j;
/*  840 */     for (j = this.sq.count - 1; j >= this.ma_p; j--)
/*      */     {
/*  842 */       if (i > this.noOfDays) {
/*      */         break;
/*      */       }
/*  845 */       if (this.minVal > this.MAs[j]) {
/*  846 */         this.minVal = this.MAs[j];
/*      */       }
/*  848 */       if (this.maxVal < this.MAs[j]) {
/*  849 */         this.maxVal = this.MAs[j];
/*      */       }
/*  851 */       i += 1;
/*      */     }
/*      */ 
/*  855 */     i = 1;
/*  856 */     for (j = this.sq.count - 1; j >= this.ma_q; j--)
/*      */     {
/*  858 */       if (i > this.noOfDays) {
/*      */         break;
/*      */       }
/*  861 */       if (this.minVal > this.MAb[j]) {
/*  862 */         this.minVal = this.MAb[j];
/*      */       }
/*  864 */       if (this.maxVal < this.MAb[j]) {
/*  865 */         this.maxVal = this.MAb[j];
/*      */       }
/*  867 */       i += 1;
/*      */     }
/*      */ 
/*  871 */     i = 1;
/*  872 */     for (j = this.sq.count - 1; j >= 20; j--)
/*      */     {
/*  874 */       if (i > this.noOfDays) {
/*      */         break;
/*      */       }
/*  877 */       if (this.minVal > this.MA20[j]) {
/*  878 */         this.minVal = this.MA20[j];
/*      */       }
/*  880 */       if (this.maxVal < this.MA20[j]) {
/*  881 */         this.maxVal = this.MA20[j];
/*      */       }
/*  883 */       i += 1;
/*      */     }
/*      */ 
/*  887 */     i = 1;
/*  888 */     for (j = this.sq.count - 1; j >= 30; j--)
/*      */     {
/*  890 */       if (i > this.noOfDays) {
/*      */         break;
/*      */       }
/*  893 */       if (this.minVal > this.MA30[j]) {
/*  894 */         this.minVal = this.MA30[j];
/*      */       }
/*  896 */       if (this.maxVal < this.MA30[j]) {
/*  897 */         this.maxVal = this.MA30[j];
/*      */       }
/*  899 */       i += 1;
/*      */     }
/*      */ 
/*  903 */     i = 1;
/*  904 */     for (j = this.sq.count - 1; j >= 50; j--)
/*      */     {
/*  906 */       if (i > this.noOfDays) {
/*      */         break;
/*      */       }
/*  909 */       if (this.minVal > this.MA50[j]) {
/*  910 */         this.minVal = this.MA50[j];
/*      */       }
/*  912 */       if (this.maxVal < this.MA50[j]) {
/*  913 */         this.maxVal = this.MA50[j];
/*      */       }
/*  915 */       i += 1;
/*      */     }
/*      */   }
/*      */ 
/*      */   public static void main(String[] paramArrayOfString)
/*      */   {
/* 1019 */     FileDownloader localFileDownloader = new FileDownloader();
/* 1020 */     localFileDownloader.downloadFiles();
/* 1021 */     SymQuotes localSymQuotes = new SymQuotes("WIPRO", localFileDownloader.datesToRead, 1, 1, "ns");
/*      */ 
/* 1023 */     BarChart localBarChart = new BarChart(localSymQuotes);
/* 1024 */     JScrollPane localJScrollPane = new JScrollPane(localBarChart);
/* 1025 */     localJScrollPane.setVerticalScrollBarPolicy(22);
/* 1026 */     localJScrollPane.setHorizontalScrollBarPolicy(32);
/*      */ 
/* 1028 */     JFrame localJFrame = new JFrame("Test");
/* 1029 */     localJFrame.setDefaultCloseOperation(3);
/* 1030 */     localJFrame.getContentPane().add(localJScrollPane, "West");
/* 1031 */     localJFrame.getContentPane().add(localBarChart.ep, "Center");
/* 1032 */     localJFrame.pack();
/* 1033 */     localJFrame.setSize(1000, 270);
/* 1034 */     localJFrame.setVisible(true);
/*      */   }
/*      */ 
/*      */   public class EastPanel extends JPanel
/*      */   {
/*      */     private JLabel title;
/*      */     private JLabel maSL;
/*      */     private JLabel maBL;
/*      */     private JLabel ma20L;
/*      */     private JLabel ma30L;
/*      */     private JLabel ma50L;
/*      */     private JLabel ma100L;
/*      */     private JLabel ma200L;
/*      */     private JLabel trendL;
/*      */     private ChartHelpButton chb;
/*      */     private float[] temp;
/*  929 */     private Font valuesF = new Font("Sanserif", 0, 11);
/*  930 */     public Box buttonsPanel = Box.createHorizontalBox();
/*      */ 
/*      */     public EastPanel()
/*      */     {
/*  934 */       this.title = new JLabel("Moving Averages");
/*  935 */       this.maSL = new JLabel("MA[" + BarChart.this.ma_p + "]: " + BarChart.this.df.format(BarChart.this.MAs[(BarChart.this.sq.count - 1)]));
/*  936 */       this.maBL = new JLabel("MA[" + BarChart.this.ma_q + "]: " + BarChart.this.df.format(BarChart.this.MAb[(BarChart.this.sq.count - 1)]));
/*  937 */       this.ma20L = new JLabel("MA[20]: " + BarChart.this.df.format(BarChart.this.MA20[(BarChart.this.sq.count - 1)]));
/*  938 */       this.ma30L = new JLabel("MA[30]: " + BarChart.this.df.format(BarChart.this.MA30[(BarChart.this.sq.count - 1)]));
/*  939 */       this.ma50L = new JLabel("MA[50]: " + BarChart.this.df.format(BarChart.this.MA50[(BarChart.this.sq.count - 1)]));
/*      */ 
/*  941 */       this.temp = BarChart.this.MAnFinder(100);
/*  942 */       this.ma100L = new JLabel("MA[100]: " + BarChart.this.df.format(this.temp[(BarChart.this.sq.count - 1)]));
/*      */ 
/*  944 */       this.temp = BarChart.this.MAnFinder(200);
/*  945 */       this.ma200L = new JLabel("MA[200]: " + BarChart.this.df.format(this.temp[(BarChart.this.sq.count - 1)]));
/*      */ 
/*  947 */       this.trendL = new JLabel("Trend: " + BarChart.this.trend);
/*  948 */       this.chb = new ChartHelpButton("http://www.profitindicators.com/home/indicators/movingaverages.htm", "Help on Moving Averages");
/*      */ 
/*  950 */       this.chb.setFont(this.valuesF);
/*      */ 
/*  952 */       this.maSL.setFont(this.valuesF);
/*  953 */       this.maBL.setFont(this.valuesF);
/*  954 */       this.ma20L.setFont(this.valuesF);
/*  955 */       this.ma30L.setFont(this.valuesF);
/*  956 */       this.ma50L.setFont(this.valuesF);
/*  957 */       this.ma100L.setFont(this.valuesF);
/*  958 */       this.ma200L.setFont(this.valuesF);
/*  959 */       this.trendL.setFont(this.valuesF);
/*      */ 
/*  961 */       this.buttonsPanel.add(this.chb);
/*  962 */       this.buttonsPanel.add(Box.createHorizontalStrut(2));
/*  963 */       this.buttonsPanel.setAlignmentX(0.0F);
/*      */ 
/*  965 */       setLayout(new BoxLayout(this, 3));
/*      */ 
/*  967 */       add(this.title);
/*  968 */       add(this.maSL);
/*  969 */       add(this.maBL);
/*  970 */       add(this.ma20L);
/*  971 */       add(this.ma30L);
/*  972 */       add(this.ma50L);
/*  973 */       add(this.ma100L);
/*  974 */       add(this.ma200L);
/*  975 */       add(new JLabel(" "));
/*  976 */       add(this.trendL);
/*  977 */       add(this.buttonsPanel);
/*  978 */       add(Box.createVerticalGlue());
/*      */ 
/*  980 */       setBackground(new Color(243, 245, 252));
/*      */     }
/*      */ 
/*      */     public void updateValues()
/*      */     {
/*  987 */       this.maSL.setText("MA[" + BarChart.this.ma_p + "]: " + BarChart.this.df.format(BarChart.this.MAs[(BarChart.this.sq.count - 1)]));
/*  988 */       this.maBL.setText("MA[" + BarChart.this.ma_q + "]: " + BarChart.this.df.format(BarChart.this.MAb[(BarChart.this.sq.count - 1)]));
/*      */ 
/*  990 */       if (BarChart.this.drawMa20)
/*  991 */         this.ma20L.setText("MA[20]: " + BarChart.this.df.format(BarChart.this.MA20[(BarChart.this.sq.count - 1)]));
/*      */       else {
/*  993 */         this.ma20L.setText(" ");
/*      */       }
/*  995 */       if (BarChart.this.drawMa30)
/*  996 */         this.ma30L.setText("MA[30]: " + BarChart.this.df.format(BarChart.this.MA30[(BarChart.this.sq.count - 1)]));
/*      */       else {
/*  998 */         this.ma30L.setText(" ");
/*      */       }
/* 1000 */       if (BarChart.this.drawMa50)
/* 1001 */         this.ma50L.setText("MA[50]: " + BarChart.this.df.format(BarChart.this.MA50[(BarChart.this.sq.count - 1)]));
/*      */       else {
/* 1003 */         this.ma50L.setText(" ");
/*      */       }
/* 1005 */       this.temp = BarChart.this.MAnFinder(100);
/* 1006 */       this.ma100L.setText("MA[100]: " + BarChart.this.df.format(this.temp[(BarChart.this.sq.count - 1)]));
/* 1007 */       this.temp = BarChart.this.MAnFinder(200);
/* 1008 */       this.ma200L.setText("MA[200]: " + BarChart.this.df.format(this.temp[(BarChart.this.sq.count - 1)]));
/* 1009 */       this.trendL.setText("Trend: " + BarChart.this.trend);
/*      */     }
/*      */   }
/*      */ }

/* Location:           C:\Users\Deebak\Downloads\profitindicatorsv2-05.jar
 * Qualified Name:     BarChart
 * JD-Core Version:    0.6.0
 */